<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
    <meta content=always name=referrer>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/style.css">
    <script src="__STATIC__/js/jquery-1.8.2.js"></script>
    <title>退货地址</title>
    <style>
        .description {
            width: 100%;
            height: 200px;
        }
        .wrap-cre .header span a {
            color: #5E5E5E;
        }
        .wrap-cre .header p {
            font-size: 20px;
            line-height: 50px;
            text-align: center;
        }
        .wrap-cre .header span {
            position: absolute;
            right: 3%;
            top: 28%;
            display: inline-block;
            font-size: 16px;
        }
    </style>
</head>
<body>
<div class="wrap-cre">
    <form action="" method="post" id="form">
        <div class="header">
            <p>退货地址</p>
            <img src="__STATIC__/img/back.png" class="back" onclick =window.location.href="{:url('mobile/shop_auth/shop_info')}";>
            <span><a href="javascript:void(0)" id="save">保存</a></span>
        </div>
        <div class="dp-info">
        <textarea name="refund_address" class="description" nullmsg="退货地址不能为空"
                  placeholder="请输入退货地址 ">{$refund_address}</textarea>
        </div>
    </form>
</div>
</body>
<!--表单提交-->
{include file="public/src" /}
<script>
    //Validform
    $(function () {
        $.Tipmsg.r = null;
        $('#form').Validform({
            tiptype: function (msg) {
                layer.open({content: msg, skin: 'msg', time: 2});
            },
            btnSubmit: '#save',
            tipSweep: true,
            ajaxPost:true,
            callback:function (t) {
                layer.open({content:t.message,skin:'msg',time:2});
                if (t.code == 200){
                    setTimeout(function () {
                        window.location.href = "{:url('mobile/shop_auth/shop_info')}";
                    },2000)
                }
            }
        })

    });
</script>
</html>